package com.docker.drug.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.docker.common.annotation.Excel;
import com.docker.common.core.domain.BaseEntity;



/**
 * 药品入库和药品中间对象 doctor_drug_warehousing_intermediate
 * 
 * @author lin
 * @date 2025-04-10
 */
public class DoctorDrugWarehousingIntermediate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @Excel(name = "序号")
    private Long id;

    /** 入库订单号id */
    private String warehousingOrderId;

    /** 药品编码 */
    @Excel(name = "药品编码")
    private String drugCode;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 采购金额（数量*药品id采购价格） */
    @Excel(name = "采购金额", readConverterExp = "数=量*药品id采购价格")
    private Double purchaseAmount;

    /** 零售金额（数量*药品id零售价格） */
    @Excel(name = "零售金额", readConverterExp = "数=量*药品id零售价格")
    private Double retailAmount;

    private DoctorWarehousing warehousing;
//    private DoctorDrug drug;

    public DoctorWarehousing getWarehousing() {
		return warehousing;
	}
    public void setWarehousing(DoctorWarehousing warehousing) {
		this.warehousing = warehousing;
	}
//    public DoctorDrug getDoctorDrug() {
//        return drug;
//    }
//    public void setDoctorDrug(DoctorDrug drug) {
//        this.drug = drug;
//    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setWarehousingOrderId(String warehousingOrderId) 
    {
        this.warehousingOrderId = warehousingOrderId;
    }

    public String getWarehousingOrderId() 
    {
        return warehousingOrderId;
    }

    public void setDrugCode(String drugCode) 
    {
        this.drugCode = drugCode;
    }

    public String getDrugCode() 
    {
        return drugCode;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setPurchaseAmount(Double purchaseAmount)
    {
        this.purchaseAmount = purchaseAmount;
    }

    public Double getPurchaseAmount()
    {
        return purchaseAmount;
    }

    public void setRetailAmount(Double retailAmount)
    {
        this.retailAmount = retailAmount;
    }

    public Double getRetailAmount()
    {
        return retailAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warehousingOrderId", getWarehousingOrderId())
            .append("drugCode", getDrugCode())
            .append("quantity", getQuantity())
            .append("unit", getUnit())
            .append("purchaseAmount", getPurchaseAmount())
            .append("retailAmount", getRetailAmount())
            .toString();
    }
}
